package com.tuananh.radnom.persist;

import java.util.ArrayList;

import com.tuananh.radnom.model.NetInterface;
import com.tuananh.radnom.model.iputils.IPRange;


public interface INetIntDAO {
	public boolean add(NetInterface netInt,String nodeName);
	public boolean update(NetInterface netInt);
	public boolean remove(String name);
	
	public ArrayList<NetInterface> getAll();
	public NetInterface getByName(String name);
	public ArrayList<NetInterface> getByNames(String names);
	public ArrayList<NetInterface> getByRange(IPRange range);
	public NetInterface getByIp(String ip);
	public boolean merge(NetInterface first,NetInterface second);
}
